<template>
	<div class="app">
		<h2>我是App组件</h2>
		<Person :name="name" :age="age" :gender="gender" :hobby="hobby" :cars="cars"/>
	</div>
</template>

<script>
	import Person from './components/Person.vue'

	export default {
		name:'App',
		components:{Person},
		data() {
			return {
				name:'张三',
				age:18,
				gender:'男',
				hobby:['抽烟','喝酒','烫头'],
				cars:{
					c1:'奔驰',
					c2:'保时捷',
					c3:'雅迪'
				}
			}
		},
	}
</script>

<style>
	.app{
		background-color: gray;
		padding: 20px;
	}
</style>